<template>
  <div class="game-slide">
    <div class="game-slide-box">
      <van-button
        type="primary"
        size="small"
        v-for="item in slideArr"
        class="classify-btn"
        :key="item"
        >{{ item }}</van-button
      >
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  slideArr: {
    type: Array,
    default: [], //advertising  cloud
  },
})
let arr = ['角色扮演', '动作角色', '模拟角色', '赛车竞速', '即时战略']
</script>

<style lang="scss" scoped>
.game-slide {
  overflow: scroll;

  white-space: nowrap;
  text-overflow: ellipsis;
  .classify-btn {
    margin: 8px 16px 8px 2px;
    font-weight: bold;
    cursor: pointer;
    /* 添加阴影 */
    /* 圆角 */
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.12);
    border: none;
    background: #fff;
    color: #252525;
    border-radius: 8px;
    padding: 10px 16px;
  }

  /* 鼠标悬停时按钮阴影效果 */
  .button:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.2);
  }
}
</style>
